const express = require('express')

const add = express.Router()

const User = require('../model/user')

add.get('/', async(req, res) => {
    await User.create({ name: '诸葛亮', age: 40, email: 'zhugeliang@163.com', hobbies: ['羽扇'] })


    res.redirect('/list')
})

module.exports = add